package fy.form.oa.operate;

import com.seeyon.oainterface.exportData.form.ValueExport;
import com.seeyon.v3x.services.flow.bean.FlowExport;

import fy.form.listen.operate.AForm_Save_Operator;
import fy.form.oa.dao.JDSerialDao;

public class JDSerialOperator extends AForm_Save_Operator {

	private String corpID;

	public String getFormName() {
		return "检定/校准申请单";
	}

	public boolean save() {
		JDSerialDao dao = new JDSerialDao();
		dao.setAccoutID(corpID);
		dao.setColSummary(this.formBean.getSummaryId());
		dao.createJDSerial();
		return false;
	}

	protected void parseOtherField_FirstStep(FlowExport flowExport) {
	}

	protected void parseValueExport(com.seeyon.v3x.services.form.bean.ValueExport ve) {
		String name = ve.getDisplayName();
		String value = ve.getValue();

		if ("单位选择器".equals(name)) {
			corpID = value;
		}
	}
}
